/**
 * 定义数采仪实体
 */
(function(window, angular, undefined){
	var dataCollectionInstrumetModule = angular.module('water.entity.dataCollectionInstrumet', ['waterCommon']);
	
	dataCollectionInstrumetModule.service('$dataCollectionInstrumetService',function($waterDataCommon){
		
		/**
		 * 查询数采仪
		 * WWTP_ID
		 * STATION_ID
		 */
		this.getList = function(queryObj){
			var promise = $waterDataCommon.post("/dataCollectionInstrumet/getList",queryObj);
			return promise;
		}
		/**
		 * 新建数采仪
		 */
		this.createModel = function(data){
			var promise = $waterDataCommon.createModel("BC_COLLECTION_INFO",data);
			return promise;
		}
		/**
		 * 更新数采仪
		 */
		this.updateModel = function(data){
			var promise = $waterDataCommon.updateModel("BC_COLLECTION_INFO",data);
			return promise;
		}
		/**
		 * 删除数采仪
		 */
		this.deleteModel = function(id){
			var promise = $waterDataCommon.deleteModel("BC_COLLECTION_INFO",{key:id});
			return promise;
		}
	});
}(window, angular));